package com.gpl.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * 车辆对象 car
 * 
 * @author luna
 * @date 2023-05-24
 */
public class Car extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 车辆默认id */
    private Long id;

    /** 车辆编号 */
    @Excel(name = "车辆编号")
    private String carId;

    /** 车辆VIN */
    @Excel(name = "车辆VIN")
    private String carVin;

    /** 车辆类型id */
    @Excel(name = "车辆类型id")
    private Long tid;

    /** 车辆状态id */
    @Excel(name = "车辆状态id")
    private String status;

    /** 电子围栏id */
    @Excel(name = "电子围栏id")
    private Long rid;

    /** 电机厂商id */
    @Excel(name = "电机厂商id")
    private Long mid;

    /** 电池厂商id */
    @Excel(name = "电池厂商id")
    private Long cid;

    /** 用户id */
    @Excel(name = "用户id")
    private Long uid;

    /** 用户联系方式 */
    @Excel(name = "用户联系方式")
    private String phone;

    /** 故障信息 */
    @Excel(name = "故障信息")
    private String faultinfo;

    /** 故障码 */
    @Excel(name = "故障码")
    private String faultcode;

    /** 审批状态 */
    @Excel(name = "审批状态")
    private String approve;

    /** 上传时间 */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @Excel(name = "上传时间")
    private Date createtime;

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setCarId(String carId) 
    {
        this.carId = carId;
    }

    public String getCarId() 
    {
        return carId;
    }
    public void setCarVin(String carVin) 
    {
        this.carVin = carVin;
    }

    public String getCarVin() 
    {
        return carVin;
    }
    public void setTid(Long tid) 
    {
        this.tid = tid;
    }

    public Long getTid() 
    {
        return tid;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setRid(Long rid) 
    {
        this.rid = rid;
    }

    public Long getRid() 
    {
        return rid;
    }
    public void setMid(Long mid) 
    {
        this.mid = mid;
    }

    public Long getMid() 
    {
        return mid;
    }
    public void setCid(Long cid) 
    {
        this.cid = cid;
    }

    public Long getCid() 
    {
        return cid;
    }
    public void setUid(Long uid) 
    {
        this.uid = uid;
    }

    public Long getUid() 
    {
        return uid;
    }
    public void setPhone(String phone) 
    {
        this.phone = phone;
    }

    public String getPhone() 
    {
        return phone;
    }
    public void setFaultinfo(String faultinfo) 
    {
        this.faultinfo = faultinfo;
    }

    public String getFaultinfo() 
    {
        return faultinfo;
    }
    public void setFaultcode(String faultcode) 
    {
        this.faultcode = faultcode;
    }

    public String getFaultcode() 
    {
        return faultcode;
    }
    public void setApprove(String approve) 
    {
        this.approve = approve;
    }

    public String getApprove() 
    {
        return approve;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("carId", getCarId())
            .append("carVin", getCarVin())
            .append("tid", getTid())
            .append("status", getStatus())
            .append("rid", getRid())
            .append("mid", getMid())
            .append("cid", getCid())
            .append("uid", getUid())
            .append("phone", getPhone())
            .append("faultinfo", getFaultinfo())
            .append("faultcode", getFaultcode())
            .append("approve", getApprove())
            .append("createtime", getCreatetime())
            .toString();
    }
}
